package com.eva.admin.dao.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eva.admin.biz.cms.resource.dto.QueryCmsResourceDTO;
import com.eva.admin.biz.cms.resource.vo.CmsResourceVO;
import com.eva.dao.cms.model.CmsResource;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CmsResourceMapper extends BaseMapper<CmsResource> {

    /**
     * 查询资源
     *
     * @param dto QueryCmsResourceDTO
     * @return List<CmsResourceVO>
     */
    List<CmsResourceVO> search(QueryCmsResourceDTO dto);

}
